<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内联元素</title>
    <style type="text/css">
        .box{
            width: 500px;
            height: 400px;
            border-color: green;
            border: 5px solid;
            font-size: 0px;
        }
        .box *{
            width: 100px;
            height: 100px;
            background-color: khaki;
            margin: 5px;
            font-size: 20px;
        }
        .box a{
            display: inline-block; /* 转为内联块 会产生间隙*/
        }
        .box span{
            display: block;
        }
        .box b{
            display: inline;
        }
        .box strong{
            display: none; /* 元素不显示且不占位置 */
        }
    </style>
</head>
<body>
    <div class="box">
        <div></div>
        <div></div>

        <!-- 内联元素 -->
        <a>asd</a>
        <em>qwe</em>
        <strong>123</strong>
        <span>456</span>
        <b>zxc</b>

    </div>
</body>
</html>